package com.execdemo.demoorderservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.execdemo.demoorderservice.domain.Product;
import com.execdemo.demoorderservice.service.ProductService;
import com.execdemo.demoorderservice.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author tiejingji
* @description 针对表【product】的数据库操作Service实现
* @createDate 2025-02-13 15:32:52
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService{

    @Autowired
    private ProductMapper productMapper;

    @Override
    public float verifyTheTotalAmount(List<Product> productList) {
        float totalAmount = productMapper.verifyTheTotalAmount(productList);
        return totalAmount;
    }
}




